1961, "comedy that deals in themes and subjects usually regarded as serious or taboo," from black (adj.), in a figurative sense of "morbid," + comedy. Compare French pièce noire, also comédie noire "macabre or farcical rendering of a violent or tragic theme" (1958, perhaps the inspiration for the English term) and 19th-century gallows-humor. In a racial sense, from 1921.
blabber
blabbermouth
black
black box
black code
black comedy
Black Death
black eye
black friar
Black Hand
Black Hills